/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package util;

/**
 *
 * @author gadiel
 */
public class Numeros 
{
    public static double redondear(double numero, int decimales)
    {
        double valor;
        if (decimales == 0)
            valor = Math.ceil(numero);
        else
        {
            int cifras = (int)Math.pow(10, decimales);
            valor = Math.ceil(numero * cifras) / cifras;
        }
        return valor;
    }
}
